<?php

namespace app\admin\validate;
use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'name'          => 'require|chsAlphaNum',
        'pwd'           => 'require',        
    ];

    protected $message = [
        'name.require'          => '账号不能为空',
        'name.chsAlphaNum'      => '账号不合法哟！',
        'pwd.require'           => '密码不能为空',
    ];
}
